//搜索
$('#search-btn').click(function(){
	var text = $('#text').val();
	var cid = $('#cid').val();
	var textType = $('#textType').val();
	var ps = $('#ps').val();
	var pe = $('#pe').val();
	var reqUrl = "/member2024/origintrademarks";
	reqUrl +=( cid ? "/cid/" + cid : "" )
	reqUrl +=( ps ? "/ps/" + ps : "")
	reqUrl +=( pe ? "/pe/" + pe : "")
	reqUrl +=( text ? "/text/" + text : "" )
	reqUrl +=( textType ? "/textType/" + textType : "")+".html";
	window.location.href = reqUrl;
});
//删除商标
$(".setOriginTrademarksBest").click(function (){
	var id = $(this).attr("trademarkid");
	$.ajax({
		url   : '/member2024/setOriginTrademarksBest',
		data  :{id: id},
		cache : false,
		async : false,
		type  : "POST",
		dataType : 'json',
		success  : function (result){
			if(result.status == 0){
				return errmsg(result.msg);
			}else{
				window.location.reload();
				return false;
			}
		}
	});
});


